<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>   
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
        <meta name="format-detection" content="telephone=no,email=no,adress=no" />
        <META HTTP-EQUIV="luxiaoqing" CONTENT="no-cache">
        <title>69圈城-商家</title>
        
        <jsp:include page="../lbi/merCommon.jsp"></jsp:include>
        <link rel="stylesheet" href="../dist/zoomify.min.css" type="text/css" />
        
    </head>

    <body>
        <!--头部-->
        <div class="business_top">
            <jsp:include page="../lbi/merHead.jsp"></jsp:include>

            <div class="clear"></div>
        </div>
        <!--头部end-->

        <div class="clear4"></div>

        <!--中间-->
        <div class="individual_form-center">
            <!--左边导航部分-->
		    <jsp:include page="../lbi/merLeft.jsp"></jsp:include>
		    <!--左边导航部分end-->

            <!--右边详情部分-->
            <div class="individual_form-center-right">
                <!--所在位置-->
                <div class="individual_form-center-right-position">
                    <span class="span01">招聘信息 </span>

                    <span class="span01">></span>

                    <span class="span01">应聘人员</span>
                    <span class="span01">></span>

                    <span class="span01">信息</span>
                </div>
                <!--所在位置end-->

                <div class="clear"></div>

                <div class="individual_form-center-right-details">
                    <div class="individual-form-job_apply">
                        <div class="clear2"></div>

                        <div class="main">
                            <span class="f1">头像：</span>
                            <span class="f2">
                                <c:if test="${businessPeople.avatar != null }">
                                    <img src="http://qiniu.images.69mark.com/${businessPeople.avatar }"/>
                                </c:if>
                                
                                <c:if test="${businessPeople.avatar == null }">
                                    <img src="<c:url value="/images/avatar.png"/>"/>
                                </c:if>
                                
                            </span>
                            <div class="clear2"></div>
                            <span class="f1">昵称：</span>
                            <span class="f2">${businessPeople.nickname }</span>
                            <div class="clear2"></div>
                            <span class="f1">手机号：</span>
                            <span class="f2">${businessPeople.mobile }</span>
                            <div class="clear2"></div>
                            <span class="f1">性别：</span>
                            <span class="f2">${businessPeople.sex }</span>
                            <div class="clear2"></div>
                            <span class="f1">工作年限：</span>
                            <span class="f2">${businessPeople.jobAge }</span>
                            <div class="clear2"></div>
                            <!-- <span class="f1">真实姓名：</span>
                            <span class="f2">哎呦</span 
                            <div class="clear2"></div>-->
                            <span class="f1">身高：</span>
                            <span class="f2">${businessPeople.secHeight }cm</span>
                            <div class="clear2"></div>
                            <span class="f1">最高学历：</span>
                            <span class="f2">${businessPeople.education }</span>
                            <div class="clear2"></div>
                            <span class="f1">专业：</span>
                            <span class="f2">${businessPeople.specialty }</span>
                            <div class="clear2"></div>
                            <span class="f1">技能标签：</span>
                            <c:forEach items="${businessPeople.tagIds }" var="tagIds">
                                <span class="f2">${tagIds }</span>
                            </c:forEach>
                            <div class="clear2"></div>
                            <span class="f1">民族：</span>
                            <span class="f2">${businessPeople.nation }</span>
                            <div class="clear2"></div>
                            <!-- <span class="f1">血型：</span>
                            <span class="f2">O型</span> 
                            <div class="clear2"></div>-->
                            <span class="f1">现居地：</span>
                            <span class="f2">${businessPeople.liveProvince }</span>
                            <div class="clear2"></div>
                            <%-- <span class="f1">家乡：</span>
                            <span class="f2">${businessPeople.homeCity }</span>
                            <div class="clear2"></div> --%>
                            <span class="f1">院校/公司：</span>
                            <span class="f2">${businessPeople.school }</span>
                            <div class="clear2"></div>
                            <span class="f1">个人简介：</span>
                            <span class="f2">${businessPeople.intro }</span>
                            <div class="clear2"></div>
                            <span class="f1">图片：</span>
                            <span class="f2">
                                <img src="http://qiniu.images.69mark.com/${businessPeople.secFrontPhoto }" />
                                <img src="http://qiniu.images.69mark.com/${businessPeople.secFullPhoto }" />
                                <img src="http://qiniu.images.69mark.com/${businessPeople.secLivePhoto }" />
                            </span>
                            <div class="clear2"></div>

                        </div>
                        
                        <div class="clear4"></div>
                        <div class="individual-sub-no2">
                            <a href="<c:url value="/merchant/toPeople.do?shopId=${businessPeople.shopId }"/>"><button class="btn2">上一步</button></a>
                            <button class="btn2" onclick="updateState('${businessPeople.bId }',1,'${businessPeople.shopId }')">拒绝</button>
                            <button class="btn1" onclick="updateState('${businessPeople.bId }',2,'${businessPeople.shopId }')">通过</button>
                        </div>
                        
                    </div>
                </div>
            </div>
            <!--右边详情部分end-->

            <div class="clear4"></div>
        </div>
        <!--中间end-->

        <div class="clear2"></div>

        <!--底部-->
        <div class="business_foot">
            <jsp:include page="../lbi/merFooter.jsp"></jsp:include>
        </div>
        <!--底部end-->

        <div class="clear8"></div>
<script src="<c:url value="/dist/zoomify.js"/>"></script>
  <script type="text/javascript">
    $("#yingpin").addClass("individual_form-center-left-nav-demo-02_dj");
    $('.f2 img').zoomify();
    
    
    var _serviceURL = '/69mark/merchant';// 必须设置
    
    function updateState(id,state,shopId){
    	$.ajax({
            type : "POST",
            url : _serviceURL+"/updatePeopleId.do",
            cache : false,
            data : "id="+id+"&state="+state,
            dataType : 'json',
            success : function(data) {
                if (data == 1) {
                	alert("操作成功");
                	window.location.href = _serviceURL+"/toPeople.do?shopId="+shopId;
                }	
            }
    	})
    }
    
</script>
    </body>

</html>